//
// Created by zhangyue26 on 2020/7/27.
//
#include <stdio.h>
#include <string.h>
struct StudentT {
    int age;
    char name[20];
    char phone[11];
};
struct Person{
    int age;
    char name[20];
    char phone[11];
    struct StudentT student;//TODO 结构体支持嵌套
};

//TODO 结构体指针相关

void structPoint1() {

    struct StudentT *student;
    student->age = 19;
    student->name[0] = 'a';//TODO 结构体指针特殊的属性赋值方式,相当于(*student).name[0]
    student->name[1] = 'b';
    student->name[2] = 'c';
    strcpy(student->phone, "12345678901");//TODO 引入string.h头文件可以使用此方法将字符串赋值到字符数组中
}
/**
 * 结构体作为函数的参数
 */
void structPoint2(struct Person person,struct Person *personPoint){

}
